Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

QuickDraw 3D Mathematical Utilities

This section describes QuickDraw 3D's utility functions for operating on basic mathematical objects such as points, vectors, matrices, and quaternions. It also describes routines you can use to manage bounding volumes.

QuickDraw 3D mathematical utilities do not automatically normalize vectors. They expect vectors to be normalized by the calling code.

Setting Points and Vectors

Converting Dimensions of Points and Vectors

Subtracting Points

Calculating Distances Between Points

Determining Point Relative Ratios

Adding and Subtracting Points and Vectors

Scaling Vectors

Determining the Lengths of Vectors

Normalizing Vectors

Adding and Subtracting Vectors

Determining Vector Cross Products

Determining Vector Dot Products

Transforming Points and Vectors

Negating Vectors

Converting Points from Cartesian to Polar or Spherical Form

Determining Point Affine Combinations

Managing Matrices

Setting Up Transformation Matrices

Utility Functions

Managing Quaternions

Managing Bounding Boxes

Managing Bounding Spheres


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |